package org.tigr.htc.cmd;

/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

import java.util.Date;

import org.tigr.antware.shared.command.events.CommandSuspend;
import org.tigr.antware.shared.command.events.SuspendEvent;

/**
 * The <b>TkSuspendEvent</b> class extends <code>CommandEvent</code> and is created and
 * sent to registered command listeners when a Command is interrupted/suspended.
 *
 */

public class TkSuspendEvent extends SuspendEvent {

	private static final long serialVersionUID = -8041168818590448946L;
	protected int index;

    /**
     * @param pSource
     * @param pCommandId
     * @param pDate
     * @param pMessage
     * @param pSuspend
     * @param pIndex
     */
    public TkSuspendEvent(Object pSource, long pCommandId, Date pDate,
        String pMessage, CommandSuspend pSuspend, int pIndex) {
        super(pSource, pCommandId, pDate, pMessage, pSuspend);
        index = pIndex;
    }

    /*
     * Suspend Getters & Setters 
     */
    
    /**
     * @return
     */
    public int getIndex() {
        return index;
    }

    /**
     * @param pIndex
     */
    public void setIndex(int pIndex) {
        index = pIndex;
    }
}


